package com.lh.createData.service.Impl;

import com.lh.createData.dao.MenuJumpTempMapper;
import com.lh.createData.model.InPutParam.MenuJumpTempInParam;
import com.lh.createData.model.MenuJumpTempSelectModel;
import com.lh.createData.service.MenuJumpTempService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：梁昊，后端工程师：梁昊
 * @create 2021-07-27 15:47
 * @function
 * @editLog
 */
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Service
public class MenuJumpTempServiceImpl implements MenuJumpTempService {
    @Autowired
    MenuJumpTempMapper menuJumpTempMapper;

    /**
     * 根据批次号删除界面跳转暂时表
     *
     * @param menuJumpTempInParam com.lh.createData.model.InPutParam.MenuJumpTempInParam
     * @return 影响条数
     */
    @Override
    public int deleteMenuJumpTempByBatchId (MenuJumpTempInParam menuJumpTempInParam) {
        return menuJumpTempMapper.deleteMenuJumpTempByBatchId(menuJumpTempInParam);
    }

    /**
     * 增加界面跳转暂时表
     *
     * @param menuJumpTempInParam com.lh.createData.model.InPutParam.MenuJumpTempInParam
     * @return 影响条数
     */
    @Override
    public int insertMenuJumpTemp (MenuJumpTempInParam menuJumpTempInParam) {
        return menuJumpTempMapper.insertMenuJumpTemp(menuJumpTempInParam);
    }

    /**
     * 统计界面跳转数据
     *
     * @param batchId 批次号
     * @return 查询
     */
    @Override
    public List<MenuJumpTempSelectModel> selectMenuJumpTempByBatchId(String batchId) {
        return menuJumpTempMapper.selectMenuJumpTempByBatchId(batchId);
    }

}